package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xgs
 * @date 2019/4/22
 * @description: 患者信息表
 */
@Data
@TableName("his_patient")
public class Patient {

    @Column(name = "id")
    private String id;

    @Column(name = "create_datetime")
    private Date createDatetime;

    @Column(name = "card_id", nullable = false, length = 20)
    private String cardId;

    @Column(name = "name", nullable = false, length = 20)
    private String name;

    @Column(name = "sex", nullable = false, length = 4)
    private String sex;

    @Column(name = "birthday", nullable = false, length = 20)
    private Date birthday;

    @Column(name = "nationality", nullable = false, length = 4)
    private String nationality;

    @Column(name = "address", nullable = false, length = 20)
    private String address;

    @Column(name = "id_card", nullable = false, length = 20)
    private String idCard;

    @Column(name = "telphone", nullable = true, length = 20)
    private String telphone;

    @Column(name = "career", nullable = true, length = 20)
    private String career;  //职业

    @Column(name = "marital_status", nullable = true, length = 10)
    private String maritalStatus;  //婚姻状况

    @Column(name = "personal_history", nullable = true, length = 255)
    private String personalHistory;  //个人史

    @Column(name = "past_history", nullable = true, length = 255)
    private String pastHistory;  //既往史

    @Column(name = "family_history", nullable = true, length = 255)
    private String familyHistory;  //家族史


}
